/*
 * game.js
 */



$.get("http://120.77.149.2/Platform/Merchant/GetAccounts", function(result) {
	var length = result.Data.length;
		console.log(result.Data);

//	console.log(result.Data.Data[0].CreateTime.substring(6, 19) - 0)
	
	var box = document.getElementById("myBox");
	var text = document.getElementById("text");
	//      var box = document.body;
	//      console.log(body)
		text.innerHTML = "共计 "+ length +" 条数据"
	for(var index = 0; index <= length; index++) {
		

		
		box.innerHTML += 	" <tr><td class='text-center active'>" + result.Data[index].AccountId + "</td>" +
			"<td class='text-center '>" + result.Data[index].Account + "</td>" +
			"<td class='text-center success'>" + result.Data[index].MerchantId + "</td>" +
			"<td class='text-center '>" + result.Data[index].PermissionGroupId + "</td>" +
			"<td class='text-center '>" + result.Data[index].Password + "</td>" +
			"<td class='text-center '>" + result.Data[index].PasswordSalt + "</td>" +
			"<td class='text-center '>" + result.Data[index].Duration + "</td>" +
			"<td class='text-center '>" + result.Data[index].Integral + "</td>" +
			"<td class='text-center success'>" + result.Data[index].CreatedOn + "</td>" +
			"<td class='text-center '>" + result.Data[index].CreatedBy + "</td>" +
			"<td class='text-center '>" + result.Data[index].CheckinOn + "</td>" +
			"<td class='text-center '>" + result.Data[index].CheckoutOn + "</td>" +
			"<td class='text-center '>" + result.Data[index].ExpiredOn + "</td>" +
			"<td class='text-center '>" + result.Data[index].IsLock + "</td>" +
			
			"<td class='text-center danger'>" + result.Data[index].AccessToken + "</td></tr>"
			

		
	}
});